package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Review;

import java.util.List;

public interface ReviewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Review record);

    Review selectByPrimaryKey(Long id);

    List<Review> selectAll();

    int updateByPrimaryKey(Review record);

    List<Review> selectContenByTravelId(Long travelId);

    Review selectByReplyId(Long replyId);


    Integer selectUnRead(Long id);

    List<Review> selectReviewByUserId(Long id);

    void changeState(Long travelId);
}